project(AsyncServerObj LANGUAGES CXX)

file(GLOB SRCS "*.cpp")

foreach(cppfile IN LISTS SRCS)
	message(STATUS "add ${cppfile} to project ${PROJECT_NAME}...")
endforeach()

add_library(${PROJECT_NAME} OBJECT
	${SRCS}
)

target_include_directories(${PROJECT_NAME} PUBLIC
	"../const"
	${Boost_INCLUDE_DIRS}
	${util_SOURCE_DIR}
	${async_server_SOURCE_DIR}
	${SessionObj_SOURCE_DIR}
	${MsgHandlerObj_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME} PUBLIC
#	jsoncpp_lib
	util_shared # 无法链接动态库？？？
	util_static
	SessionObj
	MsgHandlerObj
)